#include <stdio.h>
int main ()
{
	int n,i,s=0;
	for(n=1;n<=100;n++)
	{
		if(n!=2&&n%2==0)
		    continue;
		else
		{
			for(i=3;i<=n/3;i++)
			{
				if(n%i==0)
				   break;
			}
			if(i>n/3)
			{
			    printf("%d\n",n);
			    s+=n;
		    }
	    }  
	}
	printf("sum=%d",s);
    return 0;
}
